package com.todo.component.es.entity;

import lombok.Data;
import org.dromara.easyes.annotation.IndexField;
import org.dromara.easyes.annotation.rely.FieldType;

/**
 * @author azhebuxing
 * @date 2025/2/15 22:24
 * @description
 */
@Data
public class BaseESEntity {

    /**
     * es中的唯一id,此时id值将由es自动生成
     */
    private String id;

    /**
     * 主键id
     */
    @IndexField(fieldType = FieldType.KEYWORD)
    private Long mysqlId;
}
